package com.nidu.demo.dict.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.nidu.demo.dict.mapper.dataobject.DictDataDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface DictDataMapper extends BaseMapper<DictDataDO> {

    @Select("SELECT * FROM sys_dict_data WHERE dict_type = #{dictType} and value = #{value} LIMIT 1")
    DictDataDO selectByTypeAndValue(String dictType, String value);
}